package com.baiwei.vpnapi.exception;

/**
 * @program: vpnapi
 * @description: 认证错误类
 * @author: Mr. Stone
 * @create: 2020-02-25 07:40
 **/
public class AuthException extends RuntimeException{
    private Integer code;

    public AuthException() {}

    public AuthException(BusinessEnum errEnum) {
        super(errEnum.getMsg());
        this.code = errEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
